<!DOCTYPE html>
<html>
<head>
    <title>待办事项管理</title>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<div class="layuimini-container">
    <div class="layuimini-main">
        <form class="layui-form" >
            <blockquote class="layui-elem-quote quoteBox">
                <form class="layui-form">
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <input type="text" name="title"
                                   class="layui-input
						searchVal" placeholder="标题" />
                        </div>
                        <a class="layui-btn search_btn" data-type="reload"><i
                                    class="layui-icon">&#xe615;</i> 搜索</a>
                    </div>
                </form>
            </blockquote>
            <table id="todoList" class="layui-table"  lay-filter="todos"></table>
            <script type="text/html" id="toolbarDemo">
                <div class="layui-btn-container">
                    <a class="layui-btn layui-btn-normal addNews_btn" lay-event="add">
                        <i class="layui-icon">&#xe608;</i>
                        添加待办事项
                    </a>
                    <a class="layui-btn layui-btn-normal delNews_btn" lay-event="del">
                        <i class="layui-icon">&#xe608;</i>
                        删除待办事项
                    </a>
                </div>
            </script>
            <script type="text/html" id="switchTpl">
                <!-- 这里的 checked 的状态只是演示 -->
                <input type="checkbox" id="status" name="status" value="{{d.status}}" lay-event="switch"
                       lay-skin="switch" lay-text="已完成|未完成" lay-filter="statusDemo" {{ d.status == 1 ? 'checked' : '' }}>
            </script>
            <!--操作-->
            <script id="todoListBar" type="text/html">
                <a class="layui-btn layui-btn-xs" id="edit" lay-event="edit">编辑</a>
                <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
            </script>
        </form>
    </div>
</div>

<script type="text/javascript" src="${ctx.contextPath}/public/js/todo/todo.js"></script>

</body>
</html>